#ifndef MYLABEL_H
#define MYLABEL_H

#include <QLabel>

class MyLabel : public QLabel
{
    Q_OBJECT
public:
    explicit MyLabel(QWidget *parent = nullptr);

protected:
    // 鼠标按下
    void mousePressEvent(QMouseEvent *ev) override;
    // 鼠标松下
    void mouseReleaseEvent(QMouseEvent *ev) override;
    // 鼠标移动
    void mouseMoveEvent(QMouseEvent *ev) override;


    // 鼠标进入窗口区域
    void enterEvent(QEvent *e) override;
    // 鼠标离开窗口区域
    void leaveEvent(QEvent *e) override;


signals:

};

#endif // MYLABEL_H
